package com.bbzn.device.client.vo.req;

import com.bbzn.device.client.vo.PageVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * @Author wulongbo
 * @Date 2021/4/20 8:53
 * @Version 1.0
 */

@Getter
@Setter
@ToString
@ApiModel(value="时间对象", description="时间对象实体类")
public class TimeVO extends PageVO implements Serializable {
    private static final long serialVersionUID = -401668143742967175L;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//页面写入数据库时格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间", example = "2021/4/20 08:53:22")
    private Date startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//页面写入数据库时格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间", example = "2021/4/20 08:53:22")
    private Date endTime;

    /**
     * 设备卡号
     */
    private String imei;
}
